<? 
define('ROOT', $_SERVER['DOCUMENT_ROOT']);
require_once(ROOT.'/public/global.php');
require_once(ROOT.'/lang/'.$LN.'.php');
$code = $_GET['code'];
$pages = array('basic');
if (!in_array($code, $pages))
	$code = 'basic';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<? require_once(ROOT.'/public/ref.php'); ?>
<title><?=$MsgJs[$code.'DTree'] ?></title>
<link href="/css/default/ui.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="/css/default/dynatree/ui.css" />
<script type="text/javascript" src="/js/jquery/ui.js"></script>
<script type="text/javascript" src='/js/jquery/dynatree.min.js'></script>
<script type="text/javascript" src="/js/mac/contextMenu.min.js"></script>
<link type="text/css" rel="stylesheet" href="/css/default/mac/menu/menu.min.css" />
<script type="text/javascript" src="/js/mac/menu.min.js"></script>
<script type="text/javascript" src="/js/mac/dtree.min.js"></script>
<script type="text/javascript" src="/js/mac/webapp.min.js"></script>
</head>
<body>
<? include_once($code.'.php'); ?>
</body>
</html>
<?
$fp = ROOT.'/mac/js/dtree/dl/';
output(basename(__FILE__), $fp.$code.'.html');
?>